<template>
  <div class="rect-node">
    <el-popover
      placement="top-start"
      title="标题"
      width="200"
      trigger="hover"
      content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
    >
      <el-button slot="reference">hover 激活</el-button>
    </el-popover>
  </div>
</template>

<script>
export default {
  name: "RectNode",
  inject: ["getGraph", "getNode"],
  data() {
    return {};
  },
  mounted() {
    console.log(1);
    console.log(this.getGraph(), this.getNode());
  },
};
</script>
<style lang="less" scoped>
</style>